package com.falm.cli.command;

import com.falm.entity.MainTemplateConfig;
import picocli.CommandLine;

import java.lang.reflect.Field;
import java.util.concurrent.Callable;

/**
 * @author Administrator
 */
@CommandLine.Command(name = "config", version = "config 1.0", mixinStandardHelpOptions = true)
public class ConfigCommand implements Callable<Integer> {


    @Override
    public Integer call() throws Exception {
        Class<MainTemplateConfig> mainTemplateConfigClass = MainTemplateConfig.class;
        Field[] declaredFields = mainTemplateConfigClass.getDeclaredFields();
        for (Field declaredField : declaredFields) {
            System.out.println("字段名称：" + declaredField.getName());
            System.out.println("字段类型：" + declaredField.getType());
        }

        return 0;
    }
}
